/*
 * @Date: 2023-02-22 15:13:20
 * @LastEditors: Zireael 1193875164@qq.com
 * @LastEditTime: 2023-03-08 20:08:33
 * @FilePath: \A19\backend\src\shared\protocols\Create\PtlCreateHomework.ts
 */
import { ObjectId } from "mongodb";
import { BaseRequest, BaseResponse, BaseConf } from "../base";
import { answer } from "../../types/Answer";
import { question, questions } from "../../types/Question";

export interface ReqCreateHomework extends BaseRequest {
    course: ObjectId
    startTime: Date
    endTime: Date
    name: string
    questions:Array<ObjectId>
    status: "saved" | "published"
}

export interface ResCreateHomework extends BaseResponse {
    
}

export const conf: BaseConf = {
    needRole: 'teacher',
    needLogin: true
}